package main

import (
	"fmt"
	"time"
)

var ch = make(chan int)

func printer(s string)  {
    for _,letter:=range s{
    	fmt.Printf("%c",letter)
    	time.Sleep(time.Second)
	}
}
func person1(){
	printer("hello")
	ch<-	666
}
func person2(){
	<-ch
	printer("world")
}

func main(){
    go person1()
	go person2()
	for {

	}
}